import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
// pc端样式
import 'antd/dist/antd.min.css';
import App from './setApi/Route';
// 引入仓库
import store from './setApi/store/index';
import * as serviceWorker from './serviceWorker';

const render = () => {
  ReactDOM.render( < App / > , document.getElementById('root'));
}
// 网页加载时渲染
render()
store.subscribe(render)

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();